Skip to content

Conversation

@sjanc
Copy link
Contributor

@sjanc sjanc commented Oct 20, 2021

This allows to track security levels and check for lost bond of peer
peripherals.

This was affecting GAP/SEC/AUT/BV-21-C qualification test.

Signed-off-by: Szymon Janc [email protected]

@sjanc sjanc added this to the v2.7.1 milestone Oct 20, 2021
@github-actions github-actions bot added the area: Tests Issues related to a particular existing or missing test label Oct 20, 2021
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't a switch statement be more natural? Note that Zephyr coding style allows variable declarations also in the middle of a scope.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright, I can use switch-case here

This allows to track security levels and check for lost bond of peer
peripherals.

This was affecting GAP/SEC/AUT/BV-21-C qualification test.

Signed-off-by: Szymon Janc <[email protected]>
Comment on lines +123 to +124
tester_send(BTP_SERVICE_ID_GAP, GAP_EV_SEC_LEVEL_CHANGED,
CONTROLLER_INDEX, (uint8_t *) &sec_ev, sizeof(sec_ev));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR, but seems like tester_send() could benefit from an API improvement by making the second last parameter const void * to avoid explicit typecasts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this and also use of bt_addr_t is on my todo

@carlescufi carlescufi merged commit 8a78068 into zephyrproject-rtos:main Oct 22, 2021
@sjanc sjanc deleted the tester_bond_lost branch November 26, 2021 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Bluetooth area: Tests Issues related to a particular existing or missing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants